<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../view/css/bootstrap-responsive.min.css">
        <link rel="stylesheet" type="text/css" href="../view/css/estilo.css">

        <script type="text/javascript" src="../view/js/monitor.js"></script>
        <script type="text/javascript" src="../view/js/bootstrap.js"></script>
        <script type="text/javascript" src="../view/js/bootstrap.min.js"></script>

        <title>Consultar Monitor</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    </head>
    <body>
        <?php include 'Menu.php'; ?>

        <div classe="img-canto">
            <img src="../view/img/monitoria.jpg" height="100%" style=" height: 200px;width: 350px;padding-left: 0px; margin-bottom: 20px;" ></div>

        <form class="form-horizontal" method="post" action="ConsultaMonitor.php">   
            <p id="consultaMonitor">Consultar Monitor por:</p>
            <div class="control-group">
                <div class="controls"> 
                    <select name="lista">

                        <option value="nome" onmouseover="geraCaixaNomeMonitor();">Nome Completo</option>
                        <option value="todos" onmouseover="limpaCaixaNomeMonitor();">Todos</option>
                    </select> <?php  ?> </div>
                <div id="caixaNomeMonitor"></div>           
               
                <div class="controls"><input type="submit"  class="btn" value="Pesquisar"></div>

            </div>
        </form> 
<?php require_once 'CarregaMonitor.php'; ?>
    </body>
</html>
<?php
                 function mostraCurso(){
                 include 'conexao.php';
                    $sql = "select count(*) from curso";
                    $resultado1 = mysql_query($sql, $conexao);
                    $cont = mysql_result($resultado1, 0, "count(*)"); //pegando quantidade

                    $sql1 = "select * from curso";
                    $resultado = mysql_query($sql1, $conexao);
                  echo "<select name = 'listaCurso'>";
                    for($i = 0; $i< $cont; $i++){
                        $nomeCurso = mysql_result($resultado,$i, "nome") ;
                       echo "<option id=".$nomeCurso.">" . $nomeCurso . "</option>";  
                    }
                       echo "</select>"; 
                    mysql_close($conexao);
                    
                    }
                    
                    function mostraProfessor(){
                        include 'conexao.php';
                    $sql = "select count(*) from professor";
                    $resultado1 = mysql_query($sql, $conexao);
                    $cont = mysql_result($resultado1, 0, "count(*)"); //pegando quantidade

                    $sql1 = "select * from professor";
                    $resultado = mysql_query($sql1, $conexao);
                  echo "<select name='listaProfessor'>";
                    for($i = 0; $i< $cont; $i++){
                        $nomeProfessor = mysql_result($resultado,$i, "nome") ;
                       echo "<option id=".$nomeProfessor.">" . $nomeProfessor . "</option>";  
                    }
                       echo "</select>"; 
                    mysql_close($conexao);
                    }
                ?>